// 引入模块
const KoaRouter = require('koa-router')
// 实例化
const router = new KoaRouter();

router.prefix('/file')

router
  .post('/upload', async ctx =>{
    console.log('upload')

    ctx.response.body = {
      code: 20000,
      msg: '上传成功'
    }
  })

module.exports.fileRouter = router